package qnb.service;

import qnb._common.easyui.MenuVO;
import qnb._common.easyui.Tree;
import qnb.entity.SysPower;

import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * @author huangxin
 * @date 2019/5/20-10:14
 */
public interface SysPowerService {
    List<MenuVO> findMenu();

    List<String> getCodes(HttpSession session);

    List<MenuVO> findMenuByUser(HttpSession session);

    List<Tree> getAllPower(Integer level);


    List<Tree> getPowerByRoleId(Integer roleId);

    List<Tree> getPowerByTeacherId(String id);

    int updateTeacherPower(String id, List<Integer> ids);

    int updateStudentPower(String id, List<Integer> ids);

    List<Tree> getPowerByStudentId(String id);

    List<SysPower> getPowersByTeacherId(String id);

    List<SysPower> getPowersByStudentId(String id);



}
